package com.site.wisdom_construction.service.publicModule;

import com.site.wisdom_construction.dao.publicModule.PositionDao;
import com.site.wisdom_construction.entity.publicModule.Position;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/4
 * @Description
 */
@Service
public class PositionService implements PositionDao {
    @Autowired
    private PositionDao positionDao;

    @Override
    public int insertPosition(Map map) {
        return positionDao.insertPosition(map);
    }

    @Override
    public int deletePosition(Map map) {
        return positionDao.deletePosition(map);
    }

    @Override
    public int updatePosition(Map map) {
        return positionDao.updatePosition(map);
    }

    @Override
    public List<Position> findPositionByPage(Map map) {
        return positionDao.findPositionByPage(map);
    }

    @Override
    public long Total(Map map) {
        return positionDao.Total(map);
    }

    @Override
    public List<Position> selectPosition(Map map) {
        return positionDao.selectPosition(map);
    }

    @Override
    public List<Position> findPositionByName(Map map) {
        return positionDao.findPositionByName(map);
    }
}
